Companion

object Companion

Properties

Link copied to clipboard
Link copied to clipboard
const val CURRTYPE_CURRENCY: Int = 0
Link copied to clipboard
const val CURRTYPE_SECURITY: Int = 1
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun currencyFromFields(id: Int, idString: String?, name: String?, rate: Double, decimalPlaces: Int, prefix: String?, suffix: String?, tickerSymbol: String?, effectiveDate: Int, currencyType: Int, table: CurrencyTable): CurrencyType

Construct a CurrencyType object.

Link copied to clipboard

Parse a raw currency string, assuming there are enough decimal places. This allows us to parse currency values into long integers without having a currency object because we assume that there are enough decimal places represented in the string. This lets us simply strip out decimal/comma characters are parse the raw integer result.